import Vue from 'vue'

import '@/styles/index.scss' // global style

import App from './App.vue'
import router from './router'
import store from './store'
// 阿里巴巴矢量图
import './iconfont/iconfont.css'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

Vue.use(ElementUI)

if (process.env.NODE_ENV === "development") {
  const { mockXHR } = require('../mock')
  mockXHR()
}

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
